package com.shzu.pojo;

import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;
@Component
public class MajorCourseInfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MajorCourseInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andMidIsNull() {
            addCriterion("mid is null");
            return (Criteria) this;
        }

        public Criteria andMidIsNotNull() {
            addCriterion("mid is not null");
            return (Criteria) this;
        }

        public Criteria andMidEqualTo(String value) {
            addCriterion("mid =", value, "mid");
            return (Criteria) this;
        }

        public Criteria andMidNotEqualTo(String value) {
            addCriterion("mid <>", value, "mid");
            return (Criteria) this;
        }

        public Criteria andMidGreaterThan(String value) {
            addCriterion("mid >", value, "mid");
            return (Criteria) this;
        }

        public Criteria andMidGreaterThanOrEqualTo(String value) {
            addCriterion("mid >=", value, "mid");
            return (Criteria) this;
        }

        public Criteria andMidLessThan(String value) {
            addCriterion("mid <", value, "mid");
            return (Criteria) this;
        }

        public Criteria andMidLessThanOrEqualTo(String value) {
            addCriterion("mid <=", value, "mid");
            return (Criteria) this;
        }

        public Criteria andMidLike(String value) {
            addCriterion("mid like", value, "mid");
            return (Criteria) this;
        }

        public Criteria andMidNotLike(String value) {
            addCriterion("mid not like", value, "mid");
            return (Criteria) this;
        }

        public Criteria andMidIn(List<String> values) {
            addCriterion("mid in", values, "mid");
            return (Criteria) this;
        }

        public Criteria andMidNotIn(List<String> values) {
            addCriterion("mid not in", values, "mid");
            return (Criteria) this;
        }

        public Criteria andMidBetween(String value1, String value2) {
            addCriterion("mid between", value1, value2, "mid");
            return (Criteria) this;
        }

        public Criteria andMidNotBetween(String value1, String value2) {
            addCriterion("mid not between", value1, value2, "mid");
            return (Criteria) this;
        }

        public Criteria andCidIsNull() {
            addCriterion("cid is null");
            return (Criteria) this;
        }

        public Criteria andCidIsNotNull() {
            addCriterion("cid is not null");
            return (Criteria) this;
        }

        public Criteria andCidEqualTo(String value) {
            addCriterion("cid =", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidNotEqualTo(String value) {
            addCriterion("cid <>", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidGreaterThan(String value) {
            addCriterion("cid >", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidGreaterThanOrEqualTo(String value) {
            addCriterion("cid >=", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidLessThan(String value) {
            addCriterion("cid <", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidLessThanOrEqualTo(String value) {
            addCriterion("cid <=", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidLike(String value) {
            addCriterion("cid like", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidNotLike(String value) {
            addCriterion("cid not like", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidIn(List<String> values) {
            addCriterion("cid in", values, "cid");
            return (Criteria) this;
        }

        public Criteria andCidNotIn(List<String> values) {
            addCriterion("cid not in", values, "cid");
            return (Criteria) this;
        }

        public Criteria andCidBetween(String value1, String value2) {
            addCriterion("cid between", value1, value2, "cid");
            return (Criteria) this;
        }

        public Criteria andCidNotBetween(String value1, String value2) {
            addCriterion("cid not between", value1, value2, "cid");
            return (Criteria) this;
        }

        public Criteria andCnatureIsNull() {
            addCriterion("cnature is null");
            return (Criteria) this;
        }

        public Criteria andCnatureIsNotNull() {
            addCriterion("cnature is not null");
            return (Criteria) this;
        }

        public Criteria andCnatureEqualTo(String value) {
            addCriterion("cnature =", value, "cnature");
            return (Criteria) this;
        }

        public Criteria andCnatureNotEqualTo(String value) {
            addCriterion("cnature <>", value, "cnature");
            return (Criteria) this;
        }

        public Criteria andCnatureGreaterThan(String value) {
            addCriterion("cnature >", value, "cnature");
            return (Criteria) this;
        }

        public Criteria andCnatureGreaterThanOrEqualTo(String value) {
            addCriterion("cnature >=", value, "cnature");
            return (Criteria) this;
        }

        public Criteria andCnatureLessThan(String value) {
            addCriterion("cnature <", value, "cnature");
            return (Criteria) this;
        }

        public Criteria andCnatureLessThanOrEqualTo(String value) {
            addCriterion("cnature <=", value, "cnature");
            return (Criteria) this;
        }

        public Criteria andCnatureLike(String value) {
            addCriterion("cnature like", value, "cnature");
            return (Criteria) this;
        }

        public Criteria andCnatureNotLike(String value) {
            addCriterion("cnature not like", value, "cnature");
            return (Criteria) this;
        }

        public Criteria andCnatureIn(List<String> values) {
            addCriterion("cnature in", values, "cnature");
            return (Criteria) this;
        }

        public Criteria andCnatureNotIn(List<String> values) {
            addCriterion("cnature not in", values, "cnature");
            return (Criteria) this;
        }

        public Criteria andCnatureBetween(String value1, String value2) {
            addCriterion("cnature between", value1, value2, "cnature");
            return (Criteria) this;
        }

        public Criteria andCnatureNotBetween(String value1, String value2) {
            addCriterion("cnature not between", value1, value2, "cnature");
            return (Criteria) this;
        }

        public Criteria andCkindIsNull() {
            addCriterion("ckind is null");
            return (Criteria) this;
        }

        public Criteria andCkindIsNotNull() {
            addCriterion("ckind is not null");
            return (Criteria) this;
        }

        public Criteria andCkindEqualTo(String value) {
            addCriterion("ckind =", value, "ckind");
            return (Criteria) this;
        }

        public Criteria andCkindNotEqualTo(String value) {
            addCriterion("ckind <>", value, "ckind");
            return (Criteria) this;
        }

        public Criteria andCkindGreaterThan(String value) {
            addCriterion("ckind >", value, "ckind");
            return (Criteria) this;
        }

        public Criteria andCkindGreaterThanOrEqualTo(String value) {
            addCriterion("ckind >=", value, "ckind");
            return (Criteria) this;
        }

        public Criteria andCkindLessThan(String value) {
            addCriterion("ckind <", value, "ckind");
            return (Criteria) this;
        }

        public Criteria andCkindLessThanOrEqualTo(String value) {
            addCriterion("ckind <=", value, "ckind");
            return (Criteria) this;
        }

        public Criteria andCkindLike(String value) {
            addCriterion("ckind like", value, "ckind");
            return (Criteria) this;
        }

        public Criteria andCkindNotLike(String value) {
            addCriterion("ckind not like", value, "ckind");
            return (Criteria) this;
        }

        public Criteria andCkindIn(List<String> values) {
            addCriterion("ckind in", values, "ckind");
            return (Criteria) this;
        }

        public Criteria andCkindNotIn(List<String> values) {
            addCriterion("ckind not in", values, "ckind");
            return (Criteria) this;
        }

        public Criteria andCkindBetween(String value1, String value2) {
            addCriterion("ckind between", value1, value2, "ckind");
            return (Criteria) this;
        }

        public Criteria andCkindNotBetween(String value1, String value2) {
            addCriterion("ckind not between", value1, value2, "ckind");
            return (Criteria) this;
        }

        public Criteria andTestwayIsNull() {
            addCriterion("testway is null");
            return (Criteria) this;
        }

        public Criteria andTestwayIsNotNull() {
            addCriterion("testway is not null");
            return (Criteria) this;
        }

        public Criteria andTestwayEqualTo(String value) {
            addCriterion("testway =", value, "testway");
            return (Criteria) this;
        }

        public Criteria andTestwayNotEqualTo(String value) {
            addCriterion("testway <>", value, "testway");
            return (Criteria) this;
        }

        public Criteria andTestwayGreaterThan(String value) {
            addCriterion("testway >", value, "testway");
            return (Criteria) this;
        }

        public Criteria andTestwayGreaterThanOrEqualTo(String value) {
            addCriterion("testway >=", value, "testway");
            return (Criteria) this;
        }

        public Criteria andTestwayLessThan(String value) {
            addCriterion("testway <", value, "testway");
            return (Criteria) this;
        }

        public Criteria andTestwayLessThanOrEqualTo(String value) {
            addCriterion("testway <=", value, "testway");
            return (Criteria) this;
        }

        public Criteria andTestwayLike(String value) {
            addCriterion("testway like", value, "testway");
            return (Criteria) this;
        }

        public Criteria andTestwayNotLike(String value) {
            addCriterion("testway not like", value, "testway");
            return (Criteria) this;
        }

        public Criteria andTestwayIn(List<String> values) {
            addCriterion("testway in", values, "testway");
            return (Criteria) this;
        }

        public Criteria andTestwayNotIn(List<String> values) {
            addCriterion("testway not in", values, "testway");
            return (Criteria) this;
        }

        public Criteria andTestwayBetween(String value1, String value2) {
            addCriterion("testway between", value1, value2, "testway");
            return (Criteria) this;
        }

        public Criteria andTestwayNotBetween(String value1, String value2) {
            addCriterion("testway not between", value1, value2, "testway");
            return (Criteria) this;
        }

        public Criteria andTsetkindIsNull() {
            addCriterion("tsetkind is null");
            return (Criteria) this;
        }

        public Criteria andTsetkindIsNotNull() {
            addCriterion("tsetkind is not null");
            return (Criteria) this;
        }

        public Criteria andTsetkindEqualTo(String value) {
            addCriterion("tsetkind =", value, "tsetkind");
            return (Criteria) this;
        }

        public Criteria andTsetkindNotEqualTo(String value) {
            addCriterion("tsetkind <>", value, "tsetkind");
            return (Criteria) this;
        }

        public Criteria andTsetkindGreaterThan(String value) {
            addCriterion("tsetkind >", value, "tsetkind");
            return (Criteria) this;
        }

        public Criteria andTsetkindGreaterThanOrEqualTo(String value) {
            addCriterion("tsetkind >=", value, "tsetkind");
            return (Criteria) this;
        }

        public Criteria andTsetkindLessThan(String value) {
            addCriterion("tsetkind <", value, "tsetkind");
            return (Criteria) this;
        }

        public Criteria andTsetkindLessThanOrEqualTo(String value) {
            addCriterion("tsetkind <=", value, "tsetkind");
            return (Criteria) this;
        }

        public Criteria andTsetkindLike(String value) {
            addCriterion("tsetkind like", value, "tsetkind");
            return (Criteria) this;
        }

        public Criteria andTsetkindNotLike(String value) {
            addCriterion("tsetkind not like", value, "tsetkind");
            return (Criteria) this;
        }

        public Criteria andTsetkindIn(List<String> values) {
            addCriterion("tsetkind in", values, "tsetkind");
            return (Criteria) this;
        }

        public Criteria andTsetkindNotIn(List<String> values) {
            addCriterion("tsetkind not in", values, "tsetkind");
            return (Criteria) this;
        }

        public Criteria andTsetkindBetween(String value1, String value2) {
            addCriterion("tsetkind between", value1, value2, "tsetkind");
            return (Criteria) this;
        }

        public Criteria andTsetkindNotBetween(String value1, String value2) {
            addCriterion("tsetkind not between", value1, value2, "tsetkind");
            return (Criteria) this;
        }

        public Criteria andDirectionIsNull() {
            addCriterion("direction is null");
            return (Criteria) this;
        }

        public Criteria andDirectionIsNotNull() {
            addCriterion("direction is not null");
            return (Criteria) this;
        }

        public Criteria andDirectionEqualTo(String value) {
            addCriterion("direction =", value, "direction");
            return (Criteria) this;
        }

        public Criteria andDirectionNotEqualTo(String value) {
            addCriterion("direction <>", value, "direction");
            return (Criteria) this;
        }

        public Criteria andDirectionGreaterThan(String value) {
            addCriterion("direction >", value, "direction");
            return (Criteria) this;
        }

        public Criteria andDirectionGreaterThanOrEqualTo(String value) {
            addCriterion("direction >=", value, "direction");
            return (Criteria) this;
        }

        public Criteria andDirectionLessThan(String value) {
            addCriterion("direction <", value, "direction");
            return (Criteria) this;
        }

        public Criteria andDirectionLessThanOrEqualTo(String value) {
            addCriterion("direction <=", value, "direction");
            return (Criteria) this;
        }

        public Criteria andDirectionLike(String value) {
            addCriterion("direction like", value, "direction");
            return (Criteria) this;
        }

        public Criteria andDirectionNotLike(String value) {
            addCriterion("direction not like", value, "direction");
            return (Criteria) this;
        }

        public Criteria andDirectionIn(List<String> values) {
            addCriterion("direction in", values, "direction");
            return (Criteria) this;
        }

        public Criteria andDirectionNotIn(List<String> values) {
            addCriterion("direction not in", values, "direction");
            return (Criteria) this;
        }

        public Criteria andDirectionBetween(String value1, String value2) {
            addCriterion("direction between", value1, value2, "direction");
            return (Criteria) this;
        }

        public Criteria andDirectionNotBetween(String value1, String value2) {
            addCriterion("direction not between", value1, value2, "direction");
            return (Criteria) this;
        }

        public Criteria andRemarksIsNull() {
            addCriterion("remarks is null");
            return (Criteria) this;
        }

        public Criteria andRemarksIsNotNull() {
            addCriterion("remarks is not null");
            return (Criteria) this;
        }

        public Criteria andRemarksEqualTo(String value) {
            addCriterion("remarks =", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksNotEqualTo(String value) {
            addCriterion("remarks <>", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksGreaterThan(String value) {
            addCriterion("remarks >", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksGreaterThanOrEqualTo(String value) {
            addCriterion("remarks >=", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksLessThan(String value) {
            addCriterion("remarks <", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksLessThanOrEqualTo(String value) {
            addCriterion("remarks <=", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksLike(String value) {
            addCriterion("remarks like", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksNotLike(String value) {
            addCriterion("remarks not like", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksIn(List<String> values) {
            addCriterion("remarks in", values, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksNotIn(List<String> values) {
            addCriterion("remarks not in", values, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksBetween(String value1, String value2) {
            addCriterion("remarks between", value1, value2, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksNotBetween(String value1, String value2) {
            addCriterion("remarks not between", value1, value2, "remarks");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}